/*
Copyright (C) 2022-2024 Inspur Corp.

SPDX-License-Identifier: Apache-2.0
*/
package wsreg

import (
	"github.com/emicklei/go-restful"
	"icep/controller"
)

func RegisterUserManageWebService(ws *restful.WebService, controller *controller.IcepController) {

	ws.Route(ws.GET("/icep/um/query").To(controller.QueryUserList))
	ws.Route(ws.GET("/icep/current/user").To(controller.LoginUser))
	ws.Route(ws.POST("/icep/um/create").To(controller.CreateUser))
	ws.Route(ws.POST("/icep/um/update").To(controller.PutUser))
	ws.Route(ws.POST("/icep/logout").To(controller.Logout))
}
